﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RPGServer
{
    public class RPGMapPlayerCollection
    {
        public ushort MapId;
        public List<RPGPlayer> PlayerList;

        public RPGMapPlayerCollection(ushort mapId)
        {
            this.MapId = mapId;
            PlayerList = new List<RPGPlayer>();
        }

        public void AddPlayer(RPGPlayer player)
        {
            PlayerList.Add(player);
        }

        public void RemovePlayer(RPGPlayer player)
        {
            PlayerList.Remove(player);
        }
    }
}